package com.ce.server.common;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ce.server.pojo.Nation;
import com.ce.server.pojo.PoliticsStatus;
import com.ce.server.pojo.Role;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @DATE: 2021/11/24 21:07
 * @Author: 小爽帅到拖网速
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class StudentVo implements Serializable {

  @ApiModelProperty(value = "学生id")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @ApiModelProperty(value = "学生学号")
  private String sno;

  @ApiModelProperty(value = "学生姓名")
  private String sname;


  @ApiModelProperty(value = "0代表男 1 代表女")
  private Integer gender;

  @ApiModelProperty(value = "登录账号密码")
  private String pass;

  @ApiModelProperty(value = "年龄")
  private Integer age;

  @ApiModelProperty(value = "级别")
  private String grade;

  @ApiModelProperty(value = "专业")
  private String major;

  @ApiModelProperty(value = "健康码状态，绿码或者非绿码")
  private String jkm_status;

  @ApiModelProperty(value = "籍贯")
  private String nativePlace;

  @ApiModelProperty(value = "联系地址")
  private String address;

  @ApiModelProperty(value = "联系电话")
  private String telephone;

  @ApiModelProperty(value = "身份证号码")
  private String idCard;

  @ApiModelProperty(value = "行政班级")
  private String classInfo;

  @ApiModelProperty(value = "出生日期")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
  @Excel(name = "出生日期", format = "yyyy-MM-dd", width = 20)
  private LocalDate birthday;

  @ApiModelProperty(value = "政治面貌id")
  private Integer politicId;

  @ApiModelProperty(value = "政治面貌")
  private PoliticsStatus politicsStatus;

  @ApiModelProperty(value = "民族id")
  private Integer nationId;

  @ApiModelProperty(value = "民族")
  private Nation nation;

  @ApiModelProperty(value = "角色列表")
  private List<Role> roles;

  @ApiModelProperty(value = "用户头像")
  private String userface;
}
